package cn.cs.mapper;

import cn.cs.pojo.Agent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AgentShopMapper {

    Map<String,Object> getShopByAgentId(String id);

    int updateAgentShopById(Map<String, Object> map);

    String getTOdayEar(String id);

    List<Map<String,Object>> getOrderList(Map<String, Object> param);

    List<Map<String,Object>> getProsByOrderId(String orderId);

    int doSendOrderById(Map<String, Object> order);

    String getTodayAssets(String id);

    String getSetAssets(String id);

    String getAllAssets(String id);

    List<Map<String,Object>> getsetList(String id);

    List<Map<String,Object>> getAssetsList(Map<String, Object> param);

    List<Map<String,Object>> getPolicy();

    Map<String,Object> getLastSettlement(String id);

    Map<String,Object> getAgentById(String id);

    String getSetMoney(Map<String, Object> param);

    Map<String,Object> getProSet();

    int insertAgentSet(Map<String, Object> setMap);

    List<Map<String,Object>> getSetOrderList(Map<String, Object> param);

    int insertSetOrder(Map<String, Object> setOrderMap);

    Map<String,Object> getOrderCount(String id);

    public Long getAgentNumberByAgentId(@Param(value = "invitationCode") String invitationCode, @Param(value = "list")List<Agent> list) throws Exception;
}
